//
//  YBRequestManager.m
//  ShangHaiHuDongApp
//
//  Created by apple on 17/8/8.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "YBRequestManager.h"

@implementation YBRequestManager


#pragma mark 关系转接信息提交
+(void)commit_relationshipExchangeInfoWithInfo:(NSString *)info successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSDictionary * dic = @{@"REASON" :info};
    [NetWorkingManager postWithUrlString:@"inform.action.RelationConnection[RelConnection]" Parameter:dic Success:successBlock Fail:failBlock];
}


#pragma mark 更新信息提交
+(void)commit_refreshInfomationWithInfo:(NSString *)info successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSDictionary * dic = @{@"REASON" :info};
    [NetWorkingManager postWithUrlString:@"inform.action.Information[RelConnection]" Parameter:dic Success:successBlock Fail:failBlock];
}


#pragma mark 党员首页接口
+(void)request_partyMemberHomePageListWithAccountId:(NSString *)accountId partyMemberId:(NSString *)partyMemberId unitId:(NSString *)unitId successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setValue:accountId forKey:@"ACCOUNT_ID"];
    [dic setValue:partyMemberId forKey:@"PARTYMBMBER_ID"];
    [dic setValue:unitId forKey:@"UNIT_ID"];
    [NetWorkingManager postWithUrlString:@"pudong.workbench.action.IndexListNew" Parameter:dic Success:successBlock Fail:failBlock];
}

#pragma mark  项目详情
+(void)request_projectDetailWithProjectId:(NSString *)projectId successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setValue:projectId forKey:@"ID"];
    [NetWorkingManager postWithUrlString:@"xm.action.XmInfo[getByID]" Parameter:dic Success:successBlock Fail:failBlock];
}


#pragma mark  在线组织生活详情
+(void)request_OnlineOLDetailInfoWithActivityId:(NSString *)activityId successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setValue:activityId forKey:@"AI_ID"];
    [NetWorkingManager postWithUrlString:@"actm.action.ActIndex4OrgLife" Parameter:dic Success:successBlock Fail:failBlock];
}

#pragma mark 问卷调查列表
+ (void)request_questionnaireListByPage:(NSString *)page successBlock:(NetBlock)successBlock failBlock:(NetBlock)failBlock{
    NSMutableDictionary * dic = [NSMutableDictionary dictionary];
    [dic setValue:page forKey:@"startPage"];
    [dic setValue:@"15" forKey:@"pageSize"];
    [NetWorkingManager postWithUrlString:@"jmk.survey.action.SurveyPSQ[getSurList]" Parameter:dic Success:successBlock Fail:failBlock];
}

@end
